package example03;

public class Student extends Person{

    private String Chinese;//语文
    private String Math;//数学

    private String English;//英语


    public Student(){
//        super();
    }

    public String getChinese() {
        return Chinese;
    }

    public void setChinese(String chinese) {
        Chinese = chinese;
    }

    public String getMath() {
        return Math;
    }

    public void setMath(String math) {
        Math = math;
    }

    public String getEnglish() {
        return English;
    }

    public void setEnglish(String english) {
        English = english;
    }

    public void learn(){
        System.out.println("学习中~~~~~~");
    }

    public void eat(){
        System.out.println("正在吃东西~~~~");
    }

    @Override
    public String toString() {
        return "Student{" +
                "Chinese='" + Chinese + '\'' +
                ", Math='" + Math + '\'' +
                ", English='" + English + '\'' +
                '}';
    }
}
